#ifndef hal_configer_H
#define hal_configer_H

#include <stdint.h>

// 电机组号
typedef enum
{
    GROUP_1 = 1,
    GROUP_2,
    GROUP_3,
    GROUP_4,
    GROUP_NONE
} GroupEn;

// EEPROM存储类型
typedef enum
{
    EEPSTGTYPE_POSITION = 1,
    EEPSTGTYPE_STEPSTATE,
    EEPSTGTYPE_NONE
} EEpStgTypeEn;
// 电机方向
typedef enum
{
    DIRECTION_FORWARD = 1,
    DIRECTION_BACKWARD,
    DIRECTION_NONE,
} DirectionEn;
// 电机驱动状态
typedef enum
{
    DRIVE_STATUES_OPEN,
    DRIVE_STATUES_CLOSE,
    DRIVE_STATUES_NONE,
} DriveStatuesEn;
// 电机S型曲线阶段
typedef enum
{
    SPEED_MODEL_INCREASE = 0,
    SPEED_MODEL_STABLE,
    SPEED_MODEL_DECREASE,
    SPEED_MODEL_NONE,
} SpeedModelEn;
// 电机转动过程状态
typedef enum
{
    MOVE_STATUES_START,
    MOVE_STATUES_SKIP,
    MOVE_STATUES_STOP,
    MOVE_STATUES_NONE,
} MoveStatuesEn;

void MotorInit();

void hal_MotorMoveStartFlagSet(uint8_t MoveStatues);

uint8_t hal_MotorMoveStartFlagGet();

#endif